草庐IT

java util logging.properties : How to log to two different files

全部标签

【vue3项目】解决 “TypeError: Cannot read properties of undefined (reading ‘xxx‘)“

解决“TypeError:Cannotreadpropertiesofundefined(reading‘xxx’)”这个问题,我在网上搜了好久,网上总结的bug的原因如下://这个报错我的问题是要用到的数据读不到这个属性(我用的vue)//1.检查你的data定义的属性是不是没有你用到的这个属性,没有的话就定义一个,如下:#templatedivclass="he-info__item">spanclass="he-label">收货人姓名:/span>spanclass="he-value">{{detail.buyer.name}}/span>/div>divclass="he-info

【vue3项目】解决 “TypeError: Cannot read properties of undefined (reading ‘xxx‘)“

解决“TypeError:Cannotreadpropertiesofundefined(reading‘xxx’)”这个问题,我在网上搜了好久,网上总结的bug的原因如下://这个报错我的问题是要用到的数据读不到这个属性(我用的vue)//1.检查你的data定义的属性是不是没有你用到的这个属性,没有的话就定义一个,如下:#templatedivclass="he-info__item">spanclass="he-label">收货人姓名:/span>spanclass="he-value">{{detail.buyer.name}}/span>/div>divclass="he-info

解决 Spring Cloud 2021.0.5 版本,使用 nacos 做配置中心,报 No spring.config.import property has been defined 的问题

报错信息如下Description:Nospring.config.importpropertyhasbeendefinedSpring官方给出的解决方案如下Addaspring.config.import=nacos:propertytoyourconfiguration.Ifconfigurationisnotrequiredaddspring.config.import=optional:nacos:instead.Todisablethischeck,setspring.cloud.nacos.config.import-check.enabled=false.这里只尝试了第一种解决方

Uncaught (in promise) SyntaxError: Expected property name or ‘}‘ in JSON at position 2 单引号替换为双引号

**Uncaught(inpromise)SyntaxError:Expectedpropertynameor‘}’inJSONatposition2解决方法:单引号替换为双引号**如下形式(错误格式):[{‘ID’:‘6792921’,‘Datatime’:‘2023/3/3022:00:00’},{‘ID’:‘6792981’,‘Datatime’:‘2023/3/3023:00:00’}]JSON.parse(str)报错解决方法:单引号替换为双引号如下格式(正确格式):[{“name”:“张三”},{“name”:“李四”}]单引号替换为双引号str.replace(/'/g,'"')

ElasticSearch插件plugin ik分词器,报错plugin-descriptor.properties

@ES日志中报错plugin-descriptor.propertiesNoSuchFileException报错问题找不到这个文件plugin-descriptor.properties。`报错原因如下图所示,下载的zip文件解压之后的情况,这里是不能放到elasticsearch的plugins中的。分析:由于是java开发的分词器,这里很明显是maven项目的目录结构。所以要执行打包命令,生成对应的发布的包解决方法在你ES中存放中文分词器的ik目录下执行mvncleaninstall命令,完成后在你target目录下的release中会有以下包,这些才是我们所需要的,用这些去替换ik中的

TypeError: Cannot read properties of undefined (reading ‘NormalModule‘) 错误的解决方案

发生原因这个错误原因各种各样。虽然是相同的错误,但可能造成的原因完全不同。所以还是需要理性分析。我遇到的原因是我打算在vue3项目(差不多新建的项目)里面添加less功能。于是我执行下面的代码安装lessnpminstalllessless-loader--save安装完成后,我打算用一下,结果我忘记webpack怎么配置less了。在没有配置的情况下。我直接npmrunserve运行项目,就出现了这个错误。我心想,那算了,先不用less了,于是我执行下面的命令把less卸载了。npmuninstalllessless-loader卸载后,运行npmrunserve打算跑一下项目,发现还是报这

Cannot set properties of null (setting ‘onclick‘)问题解决方案

个人学习过程中遇到“UncaughtTypeError:Cannotsetpropertiesofnull(setting‘onclick’)”问题,分享下html代码:DOCTYPEhtml>htmllang="en">head>metacharset="UTF-8">metahttp-equiv="X-UA-Compatible"content="IE=edge">metaname="viewport"content="width=device-width,initial-scale=1.0">title>WEBAPI学习title>head>body>buttonid="btn">母校b

“TypeError: Cannot read properties of null (reading ‘getContext‘)“

目录一、报错截图二、使用场景三、代码截图四、报错原因 五、解决办法一、报错截图二、使用场景第一次在vue项目种使用canvas,跟着网上教程做,标签canvas写好了,dom元素获取了,简单“画”了一下,运行之后报"TypeError:Cannotreadpropertiesofnull(reading'getContext')"的错。意思是:找不到getContext这个属性。三、代码截图显然,获取dom元素,作图都没有错。到底问题出在哪里? 四、报错原因canvas元素在页面加载之前就获取了元素。 created:在模板渲染成html前调用,即通常初始化某些属性值,然后再渲染成识图。mou

配置hexo时TypeError: Cannot read properties of null (reading ‘xxx‘)

这种报错的含义是在读取文件时读到了空对象。一般是文件放错了位置导致程序在指定的位置读不到想要的文件导致的。我是在更换hexo的theme时遇到的问题,我直接把github上的theme文件clone到了hexo的根目录下了才有了这样的报错。只要把clone下来的theme文件保存到hexo根目录下的themes文件夹里问题就解决了 

【Vite】Vite切换版本(Vite+vue3)报错 [vite] Internal server error: Cannot set property ‘id‘ of undefined

问题Vue3+vite的项目,在全局安装新的Vite版本后,一直报下图错误。报错信息通过很多方式没有解决,最后发现是Vite版本的问题,因为Vue是从脚手架中引入的importvuefrom'@vitejs/plugin-vue'解决查看package.json和package.lock.json区别修改将package.json中vite的版本号固定后,安装(npminstall)发现仍有问题最终解决查看@vitejs/plugin-vue的版本安装上图的@vitejs/plugin-vue的版本npminstall@vitejs/plugin-vue@1.4.0问题解决~~